#include<stdio.h>
#include<string.h>
#include"Teacher.h"
#include"Student.h"
#include"Student.h"
bool IsNameEqual(Stu* s,void* value)
{
    char *name = (char *)value;
    return strcmp(s->Name,name)==0;
}
bool IsAgeEqual(Stu* s,void* value)
{
    return s->age==(int)value;
}
bool IsIdEqual(Stu* s,void* value)
{
    return s->id==(int)value;
}
bool IsScoreEqual(Stu* s,void* value)
{
    return s->score>=*(double*)value;
}
int main()
{

    teach t;
    InitTeacher(&t, "zhangsan", 40);
    InsertStu(&t, "张三", 1, 20, 99);
    InsertStu(&t, "王五", 2, 21, 79);
    InsertStu(&t, "李四", 3, 22, 98);
    // PrintTeacher(&t);
    // RemoveStu(&t, "王五");
    // PrintTeacher(&t);
    double score = 98;
    Stu *s = FindStu(&t, &score, IsScoreEqual);
    if(s)
    PrintStu(s);
    else
    printf("没找到");
    return 0;
}